<template>
  <div id="app">
    <header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">愿世界和平</h1>
		</header>
    <transition name="tabtran" mode="out-in" >
      <router-view/>
    </transition>
            <nav class="mui-bar mui-bar-tab">
			<router-link class="mui-tab-item" to='/home'>
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link class="mui-tab-item" to='/member'>
        <span class="mui-icon mui-icon-contact"></span>
				
				<span class="mui-tab-label">会员</span>
			</router-link>
			<router-link class="mui-tab-item" to='/shoppingCar'>
				<span class="mui-icon fa fa-shopping-cart "><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">购物车</span>
			</router-link>
			<router-link class="mui-tab-item" to='/search'>
				<span class="mui-icon mui-icon-search"></span>
				<span class="mui-tab-label">搜索</span>
			</router-link>
		</nav>

  </div>
</template>

<script>
export default {
  
}
</script>

<style>
#app {
padding: 40px 0 50px 0;
}
.mui-bar{
  background: skyblue;

}
.mui-bar>h1{
color: aliceblue;
  
}
.tabtran-enter{
   transform: translateX(100%)
}
.tabtran-enter-active{
    transition: all 0.3S
}
.tabtran-enter-to{
        transform: translateX(0)
}
.tabtran-lever{
 transform: translateX(0)
}
.tabtran-lever-active{
transition: all 0.3S
}
.tabtran-lever-to{
  transform: translateX(-100%)
}



</style>
